package com.hhit.zhgd.domain.excelimport

import cn.afterturn.easypoi.excel.annotation.Excel
import cn.afterturn.easypoi.handler.inter.IExcelDataModel
import cn.afterturn.easypoi.handler.inter.IExcelModel

data class EquipmentMaterialTestingImportParam(
    var rowNum: Int,
    val type: String?=null,
    @Excel(name = "检测项目", fixedIndex = 0)
    val testItem: String?=null,
    @Excel(name = "规格", fixedIndex = 1)
    val specification: String?=null,
    @Excel(name = "取样数量", fixedIndex = 2)
    val sampleNumber: String?=null,
    @Excel(name = "取样频率", fixedIndex = 3)
    val sampleRate: String?=null,
    @Excel(name = "使用部位", fixedIndex = 4)
    val partUsed: String?=null,
    /**
     * 是否见证
     */
    @Excel(name = "是否见证", fixedIndex = 5)
    var witnessOrNot: String?=null,
    /**
     * 是否交图
     */
    @Excel(name = "是否交图", fixedIndex = 6)
    var handInDrawingsFlag: String?=null
):IExcelDataModel,IExcelModel {
    override fun getRowNum(): Int {
        return rowNum!!
    }

    override fun setRowNum(rowNum: Int?) {
        this.rowNum = rowNum!!
    }

    override fun getErrorMsg(): String {
        return errorMsg
    }

    override fun setErrorMsg(errorMsg: String) {
        this.errorMsg= errorMsg
    }

}
